\documentclass[a4paper, 12pt]{article}

\begin{document}

This is
   a
       silly
    example of   a
file with many spaces.

     This is the beginning
 of a new paragraph.

 \LaTeX\ is a very powerful computer typesetting program.

\end{document}
